<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>各位数字相加显示</title>
	
	<script type="text/javascript">
		var shuru=prompt("请输入数字");
		var bai=parseInt(shuru/100);
		var shi=parseInt(shuru%100/10);
		var ge=shuru%100%10;
		alert(bai+shi+ge);


</script>
</head>
<body>
	
</body>
</html>
